package com.wenall;

import com.wenall.beans.User;
import com.wenall.confige.BeanConfig;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author liuhaowen@sanyygp.com
 * @version 1.0
 * @description
 * @date 2022/2/11 22:46
 */
public class test {
	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(BeanConfig.class);
		User user = (User)context.getBean("user");
		System.out.println(user);
	}
}
